package ro.imc.andrei.exceptions;

public class IDException extends Exception{
	private String type;
	
	public IDException(String type){
		this.type = type;
	}
	
	@Override
	public String getMessage(){
		switch(type){
			case "IDLengthBig": 	return "ID is Too Long!";
			case "IDLengthSmall": 	return "ID is Too Short!";
			case "FirstIDDigit": 	return "Check First ID Digit!";
			case "BirthDay": 		return "Incorrect Birth Year in ID!";
			case "BirthMonth": 		return "Incorrect Birth Month in ID!";
 		}
		return "Eroare";
	}

}
